const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // token
  token: state => state.user.token,
  // 用户信息
  userInfo: state => state.user.userInfo,
  // 是否登录
  isLogin: state => !!state.user.userInfo.userId,
  // 公司名称
  companyId: state => state.user.userInfo.companyId
}
export default getters
